//
//  Goods.m
//  CommunityApp
//
//  Created by 秦乾龙 on 16/12/27.
//  Copyright © 2016年 秦乾龙. All rights reserved.
//

#import "Goods.h"

@implementation Goods
- (instancetype)initWithDic:(NSDictionary*)dic
{
    if ([dic isKindOfClass:[NSDictionary class]])
    {
        self.name = dic[@"goods_name"];
        self.price = [NSString stringWithFormat:@"%@",dic[@"max_price"]];
        self.headerImageUrl = dic[@"goods_pic_url"];
        self.goodsId = dic[@"goods_id"];
        self.startPrice =[NSString stringWithFormat:@"%@",dic[@"start_price"]];
        self.boolReport = dic[@"user_signature"];
        self.stockCount = dic[@"stock_count"];
        self.payCount = dic[@"pay_count"];
        self.careCount = dic[@"followCount"];
        self.active = dic[@"activeCount"];
        self.sellerType = [NSString stringWithFormat:@"%@",dic[@"goods_sell_type"]];
    }
    
    //    self.name = dic[@"nick_name"];
    return self;
}
@end
